package com.gson;





import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author Henry
 * @since 2018-02-02
 */
public class ResponseResult {

	public static final String SYS_ERROR_TEXT = "系统出现异常，请联系管理员";
	
	//响应代码
	private String code = ResponseCode.SUCCESS;
	//一般消息
	private String message;
	//Bean验证消息
	private Map<String, String> validMsg = new HashMap<String,String>();
	//返回结果
	private Object data;

	private Boolean resultStatus =true;
	
	private ResponseResult() {}
	
	public static ResponseResult newInstance() {
		return new ResponseResult();
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Map<String, String> getValidMsg() {
		return validMsg;
	}

	public void setValidMsg(String key,String message) {
		this.validMsg.put(key, message);
	}

	public Object getData() {
		return data;
	}
	
	public void setData(Object data) {
		this.data = data;
	}

	public Boolean getResultStatus() {
		return resultStatus;
	}

	public void setResultStatus(Boolean resultStatus) {
		this.resultStatus = resultStatus;
	}
}
